﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="BillingDailyInvDetail.aspx.cs" EnableEventValidation="false" Inherits="WMS6.Web.Billing.BillingDailyInvDetail" culture="auto" meta:resourcekey="PageResource1" uiculture="auto" %>
<%@ Register Src="../UserControls/Pager.ascx" TagName="Pager" TagPrefix="uc1" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>BillingDailyInvDetail</title>
    <link href="../style/zh/1/css.css" type="text/css" rel="Stylesheet" id="mycss" />
    <link href="../Css/style.css" type="text/css" rel="stylesheet" />

    <script src="../Js/jquery.js" type="text/javascript"></script>

    <script src="../Js/jquery.simplemodal.js" type="text/javascript"></script>

    <script src="../Js/util.js" id="js" type="text/javascript"></script>

    <script src="../Js/InitPage.js" type="text/javascript"></script>

    <script src="../Js/checkbox.js" type="text/javascript"></script>
    
    <script src="../Js/jquery.blockUI.js" type="text/javascript"></script>

    <base target="_self" />

    <script type="text/javascript">
        //初始化页面
        window.onload = function(){
            var action = document.getElementById("hdnActionID").value;
            if(action != null && action != "")
            {
                var array = action.split(',');
                initQueryPage(array[0],array[1]);
            }
            else
            {
                initListPage();
            }
        }
        
        //锁屏
		function blockScreen()
		{
		    //锁屏
		    $.blockUI.defaults.message = GetBlockUIMsg();
            $.blockUI.defaults.overlayCSS.backgroundColor = GetBlockUIBgColor();
            $.blockUI();
        }
              
    </script>

</head>
<body>
    <form id="F9232" runat="server">
    <div>
        <asp:ScriptManager ID="ScriptManager1" runat="server" />
        <div id="div_List_top">
            <table>
                <tr>
                    <td valign="bottom">
                        <asp:Label ID="lblBillingOrderList" runat="server" CssClass="label_header" Text="仓储费明细" meta:resourcekey="lblBillingOrderList"></asp:Label>
                    </td>
                    <td>
                        <asp:Button ID="btnGoBack" runat="server" CssClass="button" Enabled="False" Text="<%$ Resources:ButtonResource,btnGoBack %>"
                            CausesValidation="False" OnClick="btnGoBack_Click" 
                            meta:resourcekey="btnGoBackResource1" />
                    </td>
                    <td><asp:Button ID="btnExport" runat="server" CssClass="button" Enabled="False" Text="<%$ Resources:ButtonResource,btnExport %>" 
                             CausesValidation="False" OnClick="btnExport_Click" 
                            meta:resourcekey="btnExportResource1"/>
                    </td>
                </tr>
            </table>
        </div>
        <div class="blank8">
        </div>
        <asp:UpdatePanel ID="up1" runat="server">
            <ContentTemplate>
                <div id="div_List">
                    <asp:GridView ID="gvBillingDailyInvDetail" runat="server" AllowSorting="True" AutoGenerateColumns="False" PageSize = "100"
                                            CssClass="gridview" OnRowDataBound="gvBillingDailyInvDetail_RowDataBound" DataKeyNames="BILLING_CREDENCE_ID,BILLING_OBJECT_ID,DOC_ID"
                                            AllowPaging="True"  oninit="gvBillingDailyInvDetail_Init" 
                                            OnSorting="gvBillingDailyInvDetail_Sorting" meta:resourcekey="gvBillingDailyInvDetail">
                                            <FooterStyle CssClass="GridViewFooterStyle" />
                                            <RowStyle CssClass="GridViewRowStyle" />
                                            <HeaderStyle CssClass="GridViewHeaderStyle" />
                                            <PagerStyle CssClass="GridViewPageStyle" />
                                            <AlternatingRowStyle CssClass="GridViewAlternatingRowStyle" />
                                            <Columns>
                                                <asp:BoundField HeaderText="序号" FooterText="序号" meta:resourcekey="No">
                                                    <ItemStyle CssClass="GridViewRowWidth_40" />
                                                </asp:BoundField>
                                                <asp:TemplateField meta:resourcekey="TemplateField">
                                                    <HeaderTemplate>
                                                        <asp:CheckBox ID="CheckBox1" runat="server" onclick="selectAll(this,'gvBillingDailyInvDetail');"
                                                            meta:resourcekey="CheckBox1" />
                                                    </HeaderTemplate>
                                                    <ItemTemplate>
                                                        <asp:CheckBox ID="chbSelect" runat="server" meta:resourcekey="chbSelect" />
                                                    </ItemTemplate>
                                                    <FooterTemplate>
                                                        <asp:CheckBox ID="CheckBox2" runat="server" onclick="selectAll(this,'gvBillingDailyInvDetail');"
                                                            meta:resourcekey="CheckBox2" />
                                                    </FooterTemplate>
                                                    <HeaderStyle HorizontalAlign="Center" CssClass="GridViewRowWidth_40" />
                                                    <ItemStyle HorizontalAlign="Center" CssClass="GridViewRowWidth_40" />
                                                </asp:TemplateField>
                                                <asp:BoundField DataField="BILLING_CREDENCE_ID" HeaderText="凭据号" FooterText="凭据号" SortExpression="BILLING_CREDENCE_ID"
                                                    meta:resourcekey="BILLING_CREDENCE_ID">
                                                    <ItemStyle CssClass="GridViewRowWidth_100" />
                                                </asp:BoundField> 
                                                
                                                <asp:BoundField DataField="BILLING_OBJECT_DESCR" HeaderText="结算类型" FooterText="结算类型" SortExpression="BILLING_OBJECT_DESCR"
                                                    meta:resourcekey="BILLING_OBJECT_DESCR">
                                                    <ItemStyle CssClass="GridViewRowWidth_100" />
                                                </asp:BoundField>     
                                            
                                                <asp:BoundField DataField="BILLING_OBJECT_ID" HeaderText="结算对象" FooterText="结算对象" SortExpression="BILLING_OBJECT_ID"
                                                    meta:resourcekey="BILLING_OBJECT_ID">
                                                    <ItemStyle CssClass="GridViewRowWidth_100" />
                                                </asp:BoundField>
                                                
                                                <asp:BoundField DataField="BILLING_OBJECT_NAME" HeaderText="客户名称" FooterText="客户名称" SortExpression="BILLING_OBJECT_NAME"
                                                    meta:resourcekey="BILLING_OBJECT_NAME">
                                                    <ItemStyle CssClass="GridViewRowWidth_100" />
                                                </asp:BoundField>
                                                
                                                <asp:BoundField DataField="CREDENCE_TYPE_DESCR" HeaderText="业务类型" FooterText="业务类型" SortExpression="CREDENCE_TYPE_DESCR"
                                                    meta:resourcekey="CREDENCE_TYPE_DESCR">
                                                    <ItemStyle CssClass="GridViewRowWidth_100" />
                                                </asp:BoundField>
                                                
                                                <asp:BoundField DataField="DOC_ID" HeaderText="业务单号" FooterText="业务单号" SortExpression="DOC_ID"
                                                    meta:resourcekey="DOC_ID">
                                                    <ItemStyle CssClass="GridViewRowWidth_100" />
                                                </asp:BoundField>
                                                
                                                <asp:BoundField DataField="SKU_ID" HeaderText="货品代码" FooterText="货品代码" SortExpression="SKU_ID"
                                                    meta:resourcekey="SKU_ID">
                                                    <ItemStyle CssClass="GridViewRowWidth_100" />
                                                </asp:BoundField>
    
                                                <asp:BoundField DataField="DUE_FROM_TO_DESCR" HeaderText="应收应付" FooterText="应收应付" SortExpression="DUE_FROM_TO_DESCR"
                                                    meta:resourcekey="DUE_FROM_TO_DESCR">
                                                    <ItemStyle CssClass="GridViewRowWidth_100" />
                                                </asp:BoundField>
                                                
                                                <asp:BoundField DataField="BILLING_AMOUNT" HeaderText="金额" FooterText="金额" SortExpression="BILLING_AMOUNT"
                                                    meta:resourcekey="BILLING_AMOUNT">
                                                    <ItemStyle CssClass="GridViewRowWidth_100" />
                                                </asp:BoundField>

                                            </Columns>
                                        </asp:GridView>
                </div>
                <div id="div_pager">
                    <uc1:Pager ID="PagerFooter" runat="server" OnFirst="btnFirst_Click" OnPrevious="btnPrevious_Click"
                        OnNext="btnNext_Click" OnLast="btnLast_Click" OnGoTo="GoTo_Click" />
                </div>
            </ContentTemplate>
        </asp:UpdatePanel>
    </div>
    <input type="hidden" id="hiddenFlag" />
    <input type="hidden" id="hdnFrom" runat="server" />
    <input type="hidden" id="hdnActionID" runat="server" />
    <input type="hidden" id="hdnRtnValue" runat="server" />
    <input type="hidden" id="hdnOwnerID" runat="server" />
    </form>
</body>
</html>

